<!--%import("./css/editor.css")-->
<!--%import("../../tpl/js/editor_common.js")-->
<load target="./js/editor_loader.js" type='body' />
<load target="./js/xe_interface.js" type='body' />
	<!--@if($enable_autosave)-->
    <input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
    <input type="hidden" name="_saved_doc_content" value="{htmlspecialchars($saved_doc->content)}" />
    <input type="hidden" name="_saved_doc_message" value="{$lang->msg_load_saved_doc}" />
    <!--@end-->
    <!-- 에디터 시작 -->
    <!--
		다음에디터 시작
    -->
        <!-- 에디터 컨테이너 시작 -->
        <div id="tx_trex_container{$editor_seqence}" class="tx-editor-container">
            <!-- 사이드바 -->
            <div id="tx_sidebar{$editor_seqence}" class="tx-sidebar">
                <div class="tx-sidebar-boundary">
                    <!-- 사이드바 / 첨부 -->
                    <ul class="tx-bar tx-bar-left tx-nav-attach">
						<li class="tx-list">
                            <div unselectable="on" class="tx-file tx-btn-trans" id="swfUploadButton{$editor_sequence}">
                                <a href="javascript:;" title="{$lang->edit->upload_file}" class="tx-text"></a>
								<span>{$lang->edit->upload_file}</span>
                            </div>
                        </li>
                        <!-- 이미지 첨부 버튼 시작 -->
                        <!--
                            @decsription
                            <li></li> 단위로 위치를 이동할 수 있다.
                        -->
						<!--@if($enable_component)-->
						<li class="tx-list extensions xpress_xeditor_ui_extension">
							<div unselectable="on" class="tx-component tx-btn-trans" id="tx-Component" onclick="toggleComponentList()">
                                <a href="javascript:;" title="{$lang->edit->extension}" class="tx-text"></a>
								<span>{$lang->edit->extension}</span>
                            </div>
							<div class="layer extension2 xpress_xeditor_extension_layer" id="editorExtension_{$editor_sequence}">
								<ul id="editor_component_{$editor_sequence}" class="editorComponent">
								<!--@foreach($component_list as $component_name => $component)-->
									<li><a href="#" onclick="return false;" id="component_{$editor_sequence}_{$component_name}">{$component->title}</a></li>
								<!--@end-->
									</ul>
							</div>
						</li>
						<!--@end-->

                            </ul>
                        </li>
                    </ul>
                    <!-- 사이드바 / 우측영역 -->
                    <ul class="tx-bar tx-bar-right">
                        <li class="tx-list">
                            <div unselectable="on" class="tx-btn-lrbg tx-fullscreen" id="tx_fullscreen{$editor_sequence}">
                                <a href="javascript:;" class="tx-icon" title="넓게쓰기 (Ctrl+M)">넓게쓰기</a>
                            </div>
                        </li>
                    </ul>
                    <ul class="tx-bar tx-bar-right tx-nav-opt">
                        <li class="tx-list">
                            <div unselectable="on" class="tx-switchtoggle" id="tx_switchertoggle{$editor_sequence}">
                                <a href="javascript:;" title="에디터 타입">에디터</a>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- 툴바 - 기본 시작 -->
            <!--
                @decsription
                툴바 버튼의 그룹핑의 변경이 필요할 때는 위치(왼쪽, 가운데, 오른쪽) 에 따라 <li> 아래의 <div>의 클래스명을 변경하면 된다.
                tx-btn-lbg: 왼쪽, tx-btn-bg: 가운데, tx-btn-rbg: 오른쪽, tx-btn-lrbg: 독립적인 그룹

                드롭다운 버튼의 크기를 변경하고자 할 경우에는 넓이에 따라 <li> 아래의 <div>의 클래스명을 변경하면 된다.
                tx-slt-70bg, tx-slt-59bg, tx-slt-42bg, tx-btn-43lrbg, tx-btn-52lrbg, tx-btn-57lrbg, tx-btn-71lrbg
                tx-btn-48lbg, tx-btn-48rbg, tx-btn-30lrbg, tx-btn-46lrbg, tx-btn-67lrbg, tx-btn-49lbg, tx-btn-58bg, tx-btn-46bg, tx-btn-49rbg
            -->
            <div id="tx_toolbar_basic{$editor_sequence}" class="tx-toolbar tx-toolbar-basic"><div class="tx-toolbar-boundary">
                <ul class="tx-bar tx-bar-left">
                    <li class="tx-list">
                        <div id="tx_fontfamily{$editor_sequence}" unselectable="on" class="tx-slt-70bg tx-fontfamily">
                            <a href="javascript:;" title="글꼴">굴림</a>
                        </div>
                        <div id="tx_fontfamily_menu{$editor_sequence}" class="tx-fontfamily-menu tx-menu" unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left">
                    <li class="tx-list">
                        <div unselectable="on" class="tx-slt-42bg tx-fontsize" id="tx_fontsize{$editor_sequence}">
                            <a href="javascript:;" title="글자크기">9pt</a>
                        </div>
                        <div id="tx_fontsize_menu{$editor_sequence}" class="tx-fontsize-menu tx-menu" unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left tx-group-font">

                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-lbg 	tx-bold" id="tx_bold{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="굵게 (Ctrl+B)">굵게</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-underline" id="tx_underline{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="밑줄 (Ctrl+U)">밑줄</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-italic" id="tx_italic{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="기울임 (Ctrl+I)">기울임</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-strike" id="tx_strike{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="취소선 (Ctrl+D)">취소선</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-slt-tbg 	tx-forecolor" id="tx_forecolor{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="글자색">글자색</a>
                            <a href="javascript:;" class="tx-arrow" title="글자색 선택">글자색 선택</a>
                        </div>
                        <div id="tx_forecolor_menu{$editor_sequence}" class="tx-menu tx-forecolor-menu tx-colorpallete"
                             unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-slt-brbg 	tx-backcolor" id="tx_backcolor{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="글자 배경색">글자 배경색</a>
                            <a href="javascript:;" class="tx-arrow" title="글자 배경색 선택">글자 배경색 선택</a>
                        </div>
                        <div id="tx_backcolor_menu{$editor_sequence}" class="tx-menu tx-backcolor-menu tx-colorpallete"
                             unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left tx-group-align">
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-lbg 	tx-alignleft" id="tx_alignleft{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="왼쪽정렬 (Ctrl+,)">왼쪽정렬</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-aligncenter" id="tx_aligncenter{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="가운데정렬 (Ctrl+.)">가운데정렬</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-alignright" id="tx_alignright{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="오른쪽정렬 (Ctrl+/)">오른쪽정렬</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-rbg 	tx-alignfull" id="tx_alignfull{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="양쪽정렬">양쪽정렬</a>
                        </div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left tx-group-tab">
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-lbg 	tx-indent" id="tx_indent{$editor_sequence}">
                            <a href="javascript:;" title="들여쓰기 (Tab)" class="tx-icon">들여쓰기</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-rbg 	tx-outdent" id="tx_outdent{$editor_sequence}">
                            <a href="javascript:;" title="내어쓰기 (Shift+Tab)" class="tx-icon">내어쓰기</a>
                        </div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left tx-group-list">
                    <li class="tx-list">
                        <div unselectable="on" class="tx-slt-31lbg tx-lineheight" id="tx_lineheight{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="줄간격">줄간격</a>
                            <a href="javascript:;" class="tx-arrow" title="줄간격">줄간격 선택</a>
                        </div>
                        <div id="tx_lineheight_menu{$editor_sequence}" class="tx-lineheight-menu tx-menu" unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="tx-slt-31rbg tx-styledlist" id="tx_styledlist{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="리스트">리스트</a>
                            <a href="javascript:;" class="tx-arrow" title="리스트">리스트 선택</a>
                        </div>
                        <div id="tx_styledlist_menu{$editor_sequence}" class="tx-styledlist-menu tx-menu" unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left tx-group-etc">
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-lbg 	tx-emoticon" id="tx_emoticon{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="이모티콘">이모티콘</a>
                        </div>
                        <div id="tx_emoticon_menu{$editor_sequence}" class="tx-emoticon-menu tx-menu" unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-link" id="tx_link{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="링크 (Ctrl+K)">링크</a>
                        </div>
                        <div id="tx_link_menu{$editor_sequence}" class="tx-link-menu tx-menu"></div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-specialchar" id="tx_specialchar{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="특수문자">특수문자</a>
                        </div>
                        <div id="tx_specialchar_menu{$editor_sequence}" class="tx-specialchar-menu tx-menu"></div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-table" id="tx_table{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="표만들기">표만들기</a>
                        </div>
                        <div id="tx_table_menu{$editor_sequence}" class="tx-table-menu tx-menu" unselectable="on">
                            <div class="tx-menu-inner">
                                <div class="tx-menu-preview"></div>
                                <div class="tx-menu-rowcol"></div>
                                <div class="tx-menu-deco"></div>
                                <div class="tx-menu-enter"></div>
                            </div>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-rbg 	tx-horizontalrule" id="tx_horizontalrule{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="구분선">구분선</a>
                        </div>
                        <div id="tx_horizontalrule_menu{$editor_sequence}" class="tx-horizontalrule-menu tx-menu" unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left">
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-lbg 	tx-richtextbox" id="tx_richtextbox{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="글상자">글상자</a>
                        </div>
                        <div id="tx_richtextbox_menu{$editor_sequence}" class="tx-richtextbox-menu tx-menu">
                            <div class="tx-menu-header">
                                <div class="tx-menu-preview-area">
                                    <div class="tx-menu-preview"></div>
                                </div>
                                <div class="tx-menu-switch">
                                    <div class="tx-menu-simple tx-selected"><a><span>간단 선택</span></a></div>
                                    <div class="tx-menu-advanced"><a><span>직접 선택</span></a></div>
                                </div>
                            </div>
                            <div class="tx-menu-inner">
                            </div>
                            <div class="tx-menu-footer">
                                <img class="tx-menu-confirm"
                                     src="./images/icon/editor/btn_confirm.gif?rv=1.0.1" alt=""/>
                                <img class="tx-menu-cancel" hspace="3"
                                     src="./images/icon/editor/btn_cancel.gif?rv=1.0.1" alt=""/>
                            </div>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-bg 	tx-quote" id="tx_quote{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="인용구 (Ctrl+Q)">인용구</a>
                        </div>
                        <div id="tx_quote_menu{$editor_sequence}" class="tx-quote-menu tx-menu" unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left tx-group-undo">
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-lbg 	tx-undo" id="tx_undo{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="실행취소 (Ctrl+Z)">실행취소</a>
                        </div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="		 tx-btn-rbg 	tx-redo" id="tx_redo{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="다시실행 (Ctrl+Y)">다시실행</a>
                        </div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-right">
                    <li class="tx-list">
                        <div unselectable="on" class="tx-btn-nlrbg tx-advanced" id="tx_advanced{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon" title="툴바 더보기">툴바 더보기</a>
                        </div>
                    </li>
                </ul>
            </div></div>
            <!-- 툴바 - 기본 끝 -->
            <!-- 툴바 - 더보기 시작 -->
            <div id="tx_toolbar_advanced{$editor_sequence}" class="tx-toolbar tx-toolbar-advanced"><div class="tx-toolbar-boundary">
                <ul class="tx-bar tx-bar-left">
                    <li class="tx-list">
                        <div class="tx-tableedit-title"></div>
                    </li>
                </ul>

                <ul class="tx-bar tx-bar-left tx-group-align">
                    <li class="tx-list">
                        <div unselectable="on" class="tx-btn-lbg tx-mergecells" id="tx_mergecells{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon2" title="병합">병합</a>
                        </div>
                        <div id="tx_mergecells_menu{$editor_sequence}" class="tx-mergecells-menu tx-menu" unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="tx-btn-bg tx-insertcells" id="tx_insertcells{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon2" title="삽입">삽입</a>
                        </div>
                        <div id="tx_insertcells_menu{$editor_sequence}" class="tx-insertcells-menu tx-menu" unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div unselectable="on" class="tx-btn-rbg tx-deletecells" id="tx_deletecells{$editor_sequence}">
                            <a href="javascript:;" class="tx-icon2" title="삭제">삭제</a>
                        </div>
                        <div id="tx_deletecells_menu{$editor_sequence}" class="tx-deletecells-menu tx-menu" unselectable="on"></div>
                    </li>
                </ul>

                <ul class="tx-bar tx-bar-left tx-group-align">
                    <li class="tx-list">
                        <div id="tx_cellslinepreview{$editor_sequence}" unselectable="on" class="tx-slt-70lbg tx-cellslinepreview">
                            <a href="javascript:;" title="선 미리보기"></a>
                        </div>
                        <div id="tx_cellslinepreview_menu{$editor_sequence}" class="tx-cellslinepreview-menu tx-menu"
                             unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div id="tx_cellslinecolor{$editor_sequence}" unselectable="on" class="tx-slt-tbg tx-cellslinecolor">
                            <a href="javascript:;" class="tx-icon2" title="선색">선색</a>

                            <div class="tx-colorpallete" unselectable="on"></div>
                        </div>
                        <div id="tx_cellslinecolor_menu{$editor_sequence}" class="tx-cellslinecolor-menu tx-menu tx-colorpallete"
                             unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div id="tx_cellslineheight{$editor_sequence}" unselectable="on" class="tx-btn-bg tx-cellslineheight">
                            <a href="javascript:;" class="tx-icon2" title="두께">두께</a>

                        </div>
                        <div id="tx_cellslineheight_menu{$editor_sequence}" class="tx-cellslineheight-menu tx-menu"
                             unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div id="tx_cellslinestyle{$editor_sequence}" unselectable="on" class="tx-btn-bg tx-cellslinestyle">
                            <a href="javascript:;" class="tx-icon2" title="스타일">스타일</a>
                        </div>
                        <div id="tx_cellslinestyle_menu{$editor_sequence}" class="tx-cellslinestyle-menu tx-menu" unselectable="on"></div>
                    </li>
                    <li class="tx-list">
                        <div id="tx_cellsoutline{$editor_sequence}" unselectable="on" class="tx-btn-rbg tx-cellsoutline">
                            <a href="javascript:;" class="tx-icon2" title="테두리">테두리</a>

                        </div>
                        <div id="tx_cellsoutline_menu{$editor_sequence}" class="tx-cellsoutline-menu tx-menu" unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left">
                    <li class="tx-list">
                        <div id="tx_tablebackcolor{$editor_sequence}" unselectable="on" class="tx-btn-lrbg tx-tablebackcolor"
                             style="background-color:#9aa5ea;">
                            <a href="javascript:;" class="tx-icon2" title="테이블 배경색">테이블 배경색</a>
                        </div>
                        <div id="tx_tablebackcolor_menu{$editor_sequence}" class="tx-tablebackcolor-menu tx-menu tx-colorpallete"
                             unselectable="on"></div>
                    </li>
                </ul>
                <ul class="tx-bar tx-bar-left">
                    <li class="tx-list">
                        <div id="tx_tabletemplate{$editor_sequence}" unselectable="on" class="tx-btn-lrbg tx-tabletemplate">
                            <a href="javascript:;" class="tx-icon2" title="테이블 서식">테이블 서식</a>
                        </div>
                        <div id="tx_tabletemplate_menu{$editor_sequence}" class="tx-tabletemplate-menu tx-menu tx-colorpallete"
                             unselectable="on"></div>
                    </li>
                </ul>

            </div></div>
            <!-- 툴바 - 더보기 끝 -->
            <!-- 편집영역 시작 -->
                <!-- 에디터 Start -->
    <div id="tx_canvas{$editor_sequence}" class="tx-canvas">
        <div id="tx_loading{$editor_sequence}" class="tx-loading"><div><img src="images/icon/editor/loading2.png" width="113" height="21" align="absmiddle"/></div></div>
        <div id="tx_canvas_wysiwyg_holder{$editor_sequence}" class="tx-holder" style="display:block;">
            <iframe id="editor_iframe_{$editor_sequence}" name="tx_canvas_wysiwyg" allowtransparency="true" frameborder="0" style="height:{$editor_height}px;" src="{$request_uri}modules/editor/styles/{$content_style}/editor.html"></iframe>
        </div>
        <div class="tx-source-deco">
            <div id="tx_canvas_source_holder{$editor_sequence}" class="tx-holder">
                <textarea id="editor_textarea_{$editor_sequence}" rows="30" cols="30"></textarea>
            </div>
        </div>
        <div id="tx_canvas_text_holder{$editor_sequence}" class="tx-holder">
            <textarea id="tx_canvas_text{$editor_sequence}" name="tx_{$editor_content_key_name}" rows="30" cols="30"></textarea>
        </div>
    </div>
	<!-- 높이조절 Start -->
    <div id="tx_resizer{$editor_sequence}" class="tx-resize-bar">
        <div class="tx-resize-bar-bg"></div>
        <img id="tx_resize_holder{$editor_sequence}" src="images/icon/editor/skin/01/btn_drag01.gif" width="58" height="12" unselectable="on" alt="" />
    </div>
	<!-- 편집영역 끝 -->
	<!-- 첨부박스 시작 -->
    <!-- 첨부박스 끝 -->
		<!--@if($allow_fileupload)-->
            <!--%import("../../tpl/js/uploader.js")-->
            <!--%import("../../tpl/js/swfupload.js")-->
		<div id="tx_attach_div{$editor_sequence}" class="tx-attach-div">
		<div id="fileUploader_{$editor_sequence}">
        <div id="tx_attach_box{$editor_sequence}" class="tx-attach-box">
            <div id="tx_attach_preview{$editor_sequence}" class="tx-attach-box-inner">
                <div id="preview_uploaded_{$editor_sequence}" class="tx-attach-preview"><p></p><img src="images/icon/editor/pn_preview.gif" width="108" height="108" unselectable="on"/></div>
                <div class="tx-attach-main">
                    <div id="tx_upload_progress{$editor_sequence}" class="tx-upload-progress"><div>0%</div><p>파일을 업로드하는 중입니다.</p></div>
                    <ul id="tx_attach_list{$editor_sequence}" class="tx-attach-top">
                        <li id="tx_attach_delete{$editor_sequence}" onclick="removeUploadedFile('{$editor_sequence}');" style='margin-left:5px;'><span class="btn25"><a class="btn" href="javascript:;">{$lang->edit->delete_selected}</a></span></li>
						<li id="tx_attach_link{$editor_sequence}" onclick="insertUploadedFile('{$editor_sequence}');" style='margin-left:5px;'><span class="btn25"><a class="btn" href="javascript:;">{$lang->edit->link_file}</a></span></li>
                        <li id="tx_attach_size{$editor_sequence}" class="tx-attach-size">
                            {$upload_status}
                        </li>
                        <li id="tx_attach_tools{$editor_sequence}" class="tx-attach-tools">
                        </li>
                    </ul>
					<select id="uploaded_file_list_{$editor_sequence}" multiple="multiple" class="tx-attach-list" title="Attached File List"><option></option></select>
                </div>
            </div>
        </div>
    </div>
	</div>
        <!--@end-->
        </div>
        <!-- 에디터 컨테이너 끝 -->
<!-- 에디터 끝 -->
<script type="text/javascript">
	var _target_form;
	jQuery(function(){
		_target_form = jQuery('#tx_trex_container').parents('form').attr('id');
		if(_target_form == '' || _target_form == 'undefined' ||  _target_form == null) {
			jQuery('#tx_trex_container').parents('form').attr('id', 'editorForm_{$editor_sequence}');
			_target_form = jQuery('#tx_trex_container').parents('form').attr('id');
		}
		xe_daumeditor_init({$editor_sequence}, "{$editor_primary_key_name}", "{$editor_content_key_name}");

		var config = {
			txHost: '{$request_uri}', /* 런타임 시 리소스들을 로딩할 때 필요한 부분으로, 경로가 변경되면 이 부분 수정이 필요. ex) http://xxx.xxx.com */
			txPath: '{$editor_path}', /* 런타임 시 리소스들을 로딩할 때 필요한 부분으로, 경로가 변경되면 이 부분 수정이 필요. ex) /xxx/xxx/ */
			txDecoPath: '{$request_uri}{$editor_path}images/deco/contents/',
			txIconPath: '{$request_uri}{$editor_path}images/icon/editor/', 
			txService: 'daumeditor', /* 수정필요없음. */
			txProject: 'daumeditor', /* 수정필요없음. 프로젝트가 여러개일 경우만 수정한다. */
			initializedId: "{$editor_sequence}", /* 대부분의 경우에 빈문자열 */
			wrapper: "tx_trex_container", /* 에디터를 둘러싸고 있는 레이어 이름(에디터 컨테이너) */
			form: _target_form, /* 등록하기 위한 Form 이름 */
			canvas: {
				styles: {
					color: "#000", /* 기본 글자색 */
					fontFamily: "굴림", /* 기본 글자체 */
					fontSize: "9pt", /* 기본 글자크기 */
					backgroundColor: "#fff", /*기본 배경색 */
					lineHeight: "1.5", /*기본 줄간격 */
					padding: "8px", /* 위지윅 영역의 여백 */
					height: "{$editor_height-20}px"
				},
				showGuideArea: false
			},
			events: {
				preventUnload: false
			},
			sidebar: {
				attachbox: {
					show: true
				}
			},
		};

		jQuery('#uploaded_file_list_{$editor_sequence}').live('click', function() {
			jQuery('#tx_attach_div{$editor_sequence}').show();
		});
		
	    EditorJSLoader.ready(function(Editor) {
	        var editor = new Editor(config);
			var editor_sequence = {$editor_sequence};
			if(jQuery('#'+_target_form).find('[name=content]').val()) {
				Editor.modify({
					"content": jQuery('#'+_target_form).find('[name=content]').val() /* 내용 문자열, 주어진 필드(textarea) 엘리먼트 */
		        });
			}
			editorRelKeys[editor_sequence]['editor'] = Editor;
			editorRelKeys[editor_sequence]['editor'].getFrame = function(editor_sequence) {
				return document.getElementById( 'editor_iframe_'+ editor_sequence );
			};
	    });

		<!--@if($allow_fileupload)-->
		editorUploadInit({
                    "editorSequence" : {$editor_sequence},
                    "sessionName" : "{session_name()}",
                    "allowedFileSize" : "{$file_config->allowed_filesize}",
                    "allowedFileTypes" : "{$file_config->allowed_filetypes}",
                    "allowedFileTypesDescription" : "{$file_config->allowed_filetypes}",
                    "insertedFiles" : {(int)$files_count},
                    "replaceButtonID" : "swfUploadButton{$editor_sequence}",
                    "fileListAreaID" : "uploaded_file_list_{$editor_sequence}",
                    "previewAreaID" : "preview_uploaded_{$editor_sequence}",
                    "uploaderStatusID" : "uploader_status_{$editor_sequence}"
		});
		<!--@end-->
	});
</script>